[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets a count of the number of values associated with a key. The
default implementation is slow; it enumerators all of the values
(using TryEnumerateValuesForKey) to count them. A derived class
may be able to supply a more efficient implementation.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
protected virtual int CountValues(
TKey key
) |
Visual Basic (Declaration) |
---|
Protected Overridable Function CountValues ( _
key As TKey _
) As Integer |
Visual C++ |
---|
protected:
virtual int CountValues (
TKey key
) |
Parameters
- key
- TKey
The key to count values for.
Return Value
The number of values associated with
key.
See Also